package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    //新增套餐菜品关系
    public void addSetmealDish(List<SetmealDish> setmealDishes, Long setmealId);

    //根据套餐id查询套餐菜品关系
    @Select("select * from setmeal_dish where setmeal_id =#{id}")
    public List<SetmealDish> findById(Long id);

    //根据套餐id删除套餐菜品关系
    public void delete(Long setmealId);
}
